package com.hex.ds.hdrs.label.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.bigdata.hbda.base.Page;
import com.hex.ds.hdrs.label.po.LabelInfoPo;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Package com.hex.ds.hdrs.label.dao
 * @ClassName LabelInfoDao
 * @Description 标签信息定义数据接口
 * @Author yu liuyang
 * @Date 2023/4/17 18:00
 * @Version v1.0
 **/
@Repository
public class LabelInfoDao extends BaseDao {

    /**
     * @Method queryListByPage <br>
     * @Param [labelInfoPo, page] <br>
     * @Return java.util.List<com.hex.ds.hdrs.label.po.LabelInfoPo> <br> 
     * @Description 分页查询标签信息列表 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/17 18:16 <br>
     * @Version V1.0 <br>
     */
    public List<LabelInfoPo> queryListByPage(LabelInfoPo labelInfoPo, Page page) {
        return this.selectPage(LabelInfoPo.class, "com.hex.ds.hdrs.label.dao.LabelInfoDao.query", page, labelInfoPo);
    }

    /**
     * @Method queryList <br>
     * @Param [labelInfoPo] <br>
     * @Return java.util.List<com.hex.ds.hdrs.label.po.LabelInfoPo> <br>
     * @Description 查询所有标签信息 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/17 18:16 <br>
     * @Version V1.0 <br>
     */
    public List<LabelInfoPo> queryList(LabelInfoPo labelInfoPo) {
        return this.selectList(LabelInfoPo.class, "com.hex.ds.hdrs.label.dao.LabelInfoDao.query", labelInfoPo);
    }

    /**
     * @Method queryOne <br>
     * @Param [labelInfoPo] <br>
     * @Return com.hex.ds.hdrs.label.po.LabelInfoPo <br>
     * @Description 查询单个标签信息 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/17 18:17 <br>
     * @Version V1.0 <br>
     */
    public LabelInfoPo queryOne(LabelInfoPo labelInfoPo){
        return this.selectOne(LabelInfoPo.class, "com.hex.ds.hdrs.label.dao.LabelInfoDao.query", labelInfoPo);
    }

    /**
     * @Method insert <br>
     * @Param [labelInfoPo] <br>
     * @Return int <br>
     * @Description 插入标签信息 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/17 18:17 <br>
     * @Version V1.0 <br>
     */
    public int insert(LabelInfoPo labelInfoPo) {
        return this.insert("com.hex.ds.hdrs.label.dao.LabelInfoDao.insert", labelInfoPo);
    }

    /**
     * @Method modifyById <br>
     * @Param [labelInfoPo] <br>
     * @Return int <br>
     * @Description 根据id修改标签信息 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/17 18:17 <br>
     * @Version V1.0 <br>
     */
    public int modifyById(LabelInfoPo labelInfoPo) {
       return this.update("com.hex.ds.hdrs.label.dao.LabelInfoDao.update", labelInfoPo);
    }

    /**
     * @Method removeById <br>
     * @Param [pkId] <br>
     * @Return int <br>
     * @Description 根据id删除标签信息 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/17 18:17 <br>
     * @Version V1.0 <br>
     */
    public int removeById(String pkId) {
        return this.delete("com.hex.ds.hdrs.label.dao.LabelInfoDao.delete", pkId);
    }

}
